package com.example.zyflutter.plugin

import com.example.zyflutter.utils.LogUtils
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel

/// 测试通信使用:MethodChannel
class SampleBridgeEventChannelPlugin : FlutterPlugin, MethodChannel.MethodCallHandler {
    override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        LogUtils.logE("SampleBridgeEventChannelPlugin", "onAttachedToEngine");
    }

    override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        LogUtils.logE("SampleBridgeEventChannelPlugin", "onDetachedFromEngine");
    }

    override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
        LogUtils.logE("SampleBridgeEventChannelPlugin", "onMethodCall");
    }
}